﻿/*var command = null;
var param = null;
//打开文件事件
function openFile(path) {
    if (path) {
        param = path;
        command = "open";
        if (!spreadsheet.InCallback())
            spreadsheet.PerformCallback({ "command": command, "param": path });
    }
}
//新建文件事件
function createNew() {
    command = "create";
    if (!spreadsheet.InCallback())
        spreadsheet.PerformCallback({ "command": command, "param": "" });
}
function OnSpreadsheetBeginCallback(s, e) {
    e.customArgs["param"] = command;
    e.customArgs["param"] = param;
    param = null;
    command = null;
}
function OnSpreadsheetEndCallback(s, e) {
    if (command != null)
        spreadsheet.PerformCallback();
}
//Menu事件
function SpreadSheet_CuntomCommand(s, e) {
    switch (e.commandName) {
        case "HourDataLink":
            $('#hourModal').modal('show');
            break;
        case "DayDataLink":
            $('#dayModal').modal('show');
            break;
        case "MonthDataLink":
            $('#monthModal').modal('show');
            break;
    }
}
function SetActiveCellValue(spreadsheet, cellValue) {
    var stateController = spreadsheet.getStateController();
    stateController.setEditMode(ASPxClientSpreadsheet.StateController.Modes.Edit);
    spreadsheet.setElementsValue(cellValue);
}*/